<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <ul v-for="(user, index) in users" ::key="index">
            <li>
                当前索引： {{index}} ==> 姓名：{{user.name}} ==> 性别：{{user.gender}} ==> 年龄：{{user.age}}
                <br>
                <span v-for="(v, k, i) in user" ::key="i">
                    {{i}}. {{k}} : {{v}} <br>
                </span>
            </li>

        </ul>
    </div>
    <script src="../node_modules/vue/dist/vue.js"></script>
    <script>
        // 1、声明式渲染
        let vm = new Vue({
            el: '#app',
            data: {
                users: [
                    {name: '小明', gender: '男', age: 18},
                    {name: '小红', gender: '女', age: 17},
                    {name: '小军', gender: '男', age: 21},
                    {name: '小刚', gender: '男', age: 24}
                ]
            }
        });


    </script>
</body>
</html>